﻿Public Class DMPhuongXa

    Public Sub New()
        InitializeComponent()
        Me.setObj(Me.PCV_CLINICDataSet_Don, Me.PCV_CLINICDataSet_Don.DMPhuongXa, Me.DMPhuongXaBindingSource, Me.TableAdapterManager, DMPhuongXaTableAdapter, MaITextEdit)
    End Sub

    Private Sub DMPhuongXa_Load(sender As Object, e As EventArgs) Handles MyBase.Load
        'TODO: This line of code loads data into the 'PCV_CLINICDataSet_Don.DMTinhTrang' table. You can move, or remove it, as needed.
        Me.DMTinhTrangTableAdapter.Fill(Me.PCV_CLINICDataSet_Don.DMTinhTrang)
        Me.DMQuanHuyenTableAdapter.Fill(Me.PCV_CLINICDataSet_Don.DMQuanHuyen)
        Me.DMTinhThanhTableAdapter.Fill(Me.PCV_CLINICDataSet_Don.DMTinhThanh)
        Me.DMQuocGiaTableAdapter.Fill(Me.PCV_CLINICDataSet_Don.DMQuocGia)
        Me.DMPhuongXaTableAdapter.Fill(Me.PCV_CLINICDataSet_Don.DMPhuongXa)

    End Sub

    Private Shadows Sub BarButtonItemBaoCao_ItemClick(sender As Object, e As DevExpress.XtraBars.ItemClickEventArgs) Handles BarButtonItemBaoCao.ItemClick
        Dim report As Rp_DMPhuongXa = New Rp_DMPhuongXa
        report.ShowRibbonPreview()
    End Sub

    Private Sub MaquanhuyenISearchLookupEdit_Enter(sender As Object, e As EventArgs) Handles MaquanhuyenISearchLookupEdit.Enter
        Me.DMQuanHuyenBindingSource.Filter = "matinhthanh='" & Me.MatinhthanhISearchLookupEdit.EditValue.ToString & "'"
    End Sub

    Private Sub MatinhthanhISearchLookupEdit_Enter(sender As Object, e As EventArgs) Handles MatinhthanhISearchLookupEdit.Enter
        Me.DMTinhThanhBindingSource.Filter = "maquocgia='" & Me.MaquocgiaISearchLookupEdit.EditValue.ToString & "'"
    End Sub
End Class
